package com.iknow.db;

import android.database.Cursor;
import android.provider.BaseColumns;
import com.iknow.data.SubscribeTag;

public class SubscribeTagTable
  implements BaseColumns
{
  public static final String CREATE_TABLE = "create table subscribe_tag (user_id text not null,tag_name text not null, system_flag text)";
  public static final String[] TABLE_COLUMNS;
  public static final String TABLE_NAME = "subscribe_tag";
  public static final String TAG = "SubscribeTagTable";
  public static final String TAG_NAME = "tag_name";
  public static final String TAG_SYSTEM_FLAG = "system_flag";
  public static final String TAG_USER_ID = "user_id";

  static
  {
    String[] arrayOfString = new String[3];
    arrayOfString[0] = "user_id";
    arrayOfString[1] = "subscribe_tag";
    arrayOfString[2] = "tag_name";
    TABLE_COLUMNS = arrayOfString;
  }

  public static SubscribeTag parserCursor(Cursor paramCursor)
  {
    SubscribeTag localSubscribeTag = new SubscribeTag(paramCursor.getString(paramCursor.getColumnIndex("tag_name")), paramCursor.getString(paramCursor.getColumnIndex("system_flag")));
    localSubscribeTag.setSubscribeFlag("1");
    return localSubscribeTag;
  }
}